package com.xbongbong.pro.permission.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.UserVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Author shian
 * @create 2019-07-06 18:52
 */
@Getter
@Setter
@ToString
public class VerifyViewPermissionDTO extends BaseDTO {
    private static final long serialVersionUID = -983635033904828994L;
    /**
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;

    /**
     * 业务类型
     */
    private Integer businessType;

    private Long menuId;

    private PaasFormDataEntityExt paasFormDataEntityExt;

    public VerifyViewPermissionDTO() {
    }

    public VerifyViewPermissionDTO(UserVO loginUser, PaasFormDataEntityExt paasFormDataEntityExt) {
        this.setLoginUser(loginUser);
        this.paasFormDataEntityExt = paasFormDataEntityExt;
    }

    public VerifyViewPermissionDTO(Integer saasMark, Integer businessType, Long menuId, UserVO userVO) {
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.menuId = menuId;
        setLoginUser(userVO);
    }
}
